package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.TicketCommend;
import cn.wolfcode.luowowo.article.mapper.TicketCommendMapper;
import cn.wolfcode.luowowo.article.service.ITicketCommendService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TicketCommendServiceImpl implements ITicketCommendService {
    @Autowired
    private TicketCommendMapper ticketCommendMapper;



    @Override
    public List<TicketCommend> getTop4() {
        List<TicketCommend> ticketCommends = ticketCommendMapper.selectTop4();
        for (TicketCommend ticketCommend : ticketCommends) {
            System.out.println(ticketCommend);
        }
        return ticketCommends;
    }
}
